home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Windows Expert
/
Windows Expert.iso
/
windownt
/
rcsdoc.zip
/
READ.ME
< prev
next >
Wrap
Text File
|
1993-09-05
|
5KB
|
107 lines
This is the latest version of the Free Software Foundations's
Revision Control System (version 5.6). It was ported to NT as
part of research for a PC Week Labs article on free software. It
is *not* an example of good programming, since I'm far from a
professional C programmer. It also hasn't been tested that
extensively, although I've been using it for a month or so and the
basic commands seem to work as expected.
CAVEATS: There are a few. One is that it only works on text files.
In fact, if you try to "checkin" or "checkout" a binary file, it will
truncate the file without warning. Another is that these programs only
take the '-' character as an option delimiter on the command line. They
won't work with the '/' character. Finally, this release has only
been tested on intel with NTFS. In fact, it won't work on FAT, because
the RCS files use ",v" as the extension.
Of course, RCS comes with no warranty whatsoever, not even for fitness
for a particular purpose. See the file COPYING for the GNU's copyright.
I got the original source from the UNIXFORUM on Compuserve. The file
CHANGES.NT shows the mostly unnecessary changes I made to the original
source. I changed things like k&r function declarations to ansi C style
(in anticipation of making this part of a DLL or C++ program some day),
added explicit casts everywhere to get rid of compiler warnings, and
changed the default file-open mode to text instead of binary. The last
change was necessary to get around the problem of Unix line endings
(which end in \n, instead of \r\n). Without that change, I would have had
to make numerous other changes throughout the source code. Please do let
me know if you have found a better way to port this source.
The distribution includes three zip files:
rcs56nt.zip -- the binary files.
rcssrc.zip -- source code. The original source code is in CIS:UNIXFORUM.
See the Changes.nt file for the changes I made to the original
source.
rcsdoc.zip -- The documentation files I got from the DOS port of RCS. These
files document version 5.5 of RCS, but that's close enough.
For the absolute minimum you need to know to get started, see
below.
You also need the NT ports of diff and diff3, which I uploaded separately.
What you absolutely need to know to get started.
------------------------------------------------
Put the binaries for RCS, along with diff.exe and diff3.exe, into a directory
on your path. Add two variables to your environment using the system icon
in the control panel. One is LOGNAME, which should be set to your login name.
The other is TZ, which is the time zone your in. Mine is set to EST5EDT. Set
yours appropriately.
To use RCS on a particular directory of source code, create a directory
below the source code called RCS. Check in the initial version of all the
text files with the "ci" command (without the quotes). For example,
ci *.c *.h *.mak
will check in the source files for the typical project written in C. If this
is the first time you checked those files in, ci will prompt you for a
description of the file. If you have changed the file since you last
checked it in, you will be prompted for a log message. If you put a log
area on the top of your source, file, rcs will automatically update this
to show all the log messages. For example, add the following at the top of
all of your C source and headers:
/* $Log: $
*/
This will be exanded by the co command (see below) to a listing of all of
the log messages used when checking in the file. For example, look at the
source files for RCS.
IMPORTANT: Remember this version of RCS does not work with binary files, so
don't try to check in all the misc. junk generated by your compiler (such
as *.sbr and other stuff created by Visual C++).
To check the files out again for editing, use the "co" command. For example,
co -l RCS\*.*
The -l option puts a lock on the files in your name so that no one can over-
write your changes. If you omit the -l option, co will create read-only copies
of the latest version of each file. You can also use "ci -l" to checkin
the current files as a new version and automatically check them out again
with a lock.
What some of the other commands do.
-----------------------------------
RCSDIFF -- shows you the changes you've made since you checked out a file.
run "rcsdiff <sourcefile>" and it will dump out a diff listing of your changes.
This is useful before checking in a new version, to remind you of the changes
you made before writing a log message.
RLOG -- shows you all of the log messages and other RCS information stored for
a particular file. For example, running "rlog ci.c" will show you all of the
revision logs for ci.c, as well as the username of the person who owns a "lock"
on the file.
That's enough to get you started. Read the docs for more information. I would
be interested in hearing from anyone who improves on this initial port.
-Eamonn Sullivan
PC Week Labs senior technical analyst.